package cn.atzxc.qy.mapper;

import cn.atzxc.qy.domain.Order;
import cn.atzxc.qy.domain.vo.OrderVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    //根据任务去查询指定得
    OrderVo selectOneByTaskId(Long taskid);
    OrderVo selectOneByUserId(Long orderid);


    //我是用户，待收货
    List<OrderVo> selectOrderInfoByUserId(Long userid);
    //我是骑手，配送中
    List<OrderVo> selectOrderInfoByQiId(Long userid);
    //查询属于我的已经完成的订单
    List<OrderVo> selectOrderInfoByWanCheng(Long userid);
    //查询出属于我的所有订单
    List<OrderVo> selectAllOrderInfo(Long userid);
    //查询出所有正在售后中的订单
    List<OrderVo> selectOrderInfoByShouHou(Long userid);

}
